How Memory Is Allocated